#include <iostream>
#include <cstring>
#include <string>
using namespace std;
int main() {
    int a1[100], len1, a2[100], len2;
    int a[200], len;
    memset(a1, 0, sizeof(a1));
    memset(a2, 0, sizeof(a2));
    memset(a, 0, sizeof(a));
    string num1, num2;
    cin >> num1;
    len1 = num1.length();
    cin >> num2;
    len2 = num2.length();
    for (int i = 1; i <= len1; i++) {
        a1[i] = num1[len1 - i] - '0';
    }
    for (int i = 1; i <= len2; i++) {
        a2[i] = num2[len2 - i] - '0';
    }

    for (int i = 1; i <= len1; i++) {
        for (int j = 1; j <= len2; j++) {
            a[i + j - 1] += a1[i] * a2[j];
        }
    }

    len = len1 + len2 - 1;
    for (int i = 1; i <= len; i++) {
        a[i + 1] += a[i] / 10;
        a[i] %= 10;
    }

    while (a[len + 1]) {
        len++;
        a[len + 1] += a[len] / 10;
        a[len] %= 10;
    }


    for (int i = len; i >= 1; i--) {
        cout << a[i];
    }
    cout << endl;

    return 0;
}